package org.itboys.weixin.tools;

import org.itboys.admin.tools.AdminSessionHolder;
import org.itboys.webdata.CookieHolder;

public class WeixinDataUtils {

	public static Long getWeixinUserId(){
		Long weixinUserId = AdminSessionHolder.getWeixinUserId();
		if(weixinUserId==null){
			weixinUserId=CookieHolder.getWeixinUserId();
		}
		return weixinUserId;
	}
	
	public static Long getWeixinId(){
		Long weixinId = AdminSessionHolder.getWeixinId();
		if(weixinId==null){
			weixinId=CookieHolder.getWeixinId();
		}
		return weixinId;
	}
}
